<?php
/**
 * @copyright SYS Company
 * @author : Mr  Nguyễn Hoàng Long
 * @version : 1.0
 * @name : CRUD Class
 * @todo:  Lớp  mở rộng của CModule. Thao tác danh sách, sửa, xóa cơ sở.
*/
class GmatHeader extends CModule {
	/*
	 * output data
	 * */
	function draw() {
		$page = request('page');
		$currentMenu ='home';
		switch ($page) {
			case 'practice':$currentMenu ='practice';break;
			case 'test':$currentMenu ='test';break;
			case 'tools':$currentMenu ='tools';break;
			case 'list_group':$currentMenu ='group';break;
			case 'list_public_group':$currentMenu ='group';break;
			case 'manage_group':$currentMenu ='group';break;
			case 'create_group':$currentMenu ='group';break;
		}
		CForm($this->path().'/layout.tpl')->parse(array('currentMenu'=>$currentMenu));
 	}
}